<?php

defined('SYSPATH') or die('No direct access allowed.');
if (!Route::cache()) {
    //收货单的路由
    Route::set('receipt', 'receipt(/<action>(/<id>))')
            ->defaults(array(
                'controller' => 'receipt',
                'action' => 'index',
    ));

    Route::set('printreceipt', 'printreceipt(/<action>(/<id>))')
            ->defaults(array(
                'controller' => 'printreceipt',
                'action' => 'skutiaoma',
    ));
    Route::set('receiptreport', 'receiptreport(/<action>(/<id>))')
            ->defaults(array(
                'controller' => 'receiptreport',
                'action' => 'select_receipt',
    ));

    Route::set('recieve', 'recieve(/<controller>(/<action>(/<id>)))'
            )
            ->defaults(array(
                'directory' => 'recieve',
                'controller' => 'detail',
                'action' => 'index',
    ));
    Route::set('unreceipt', 'unreceipt(/<action>(/<id>))')
            ->defaults(array(
                'controller' => 'unreceipt',
                'action' => 'index',
    ));
    //yuqing
    Route::set('recievenwarehouse', 'recievenwarehouse(/<action>(/<id>))')
            ->defaults(array(
                'controller' => 'recievenwarehouse',
                'action' => 'index',
    ));
    //yuqing
}

ACL::set('收货模块', array(
    'printreceipt' => array(
        'title' => __('收货员打印标签'),
        'restrict access' => TRUE,
        'description' => '',
    ),
    'receipt_createbatch' => array(
        'title' => __('扫描收货'),
        'restrict access' => TRUE,
        'description' => '',
    ),
    'receipt_update' => array(
        'title' => __('收货单操作'),
        'restrict access' => TRUE,
        'description' => '',
    ),
    'recieve_detail_report' => array(
        'title' => __('收货明细报表'),
        'restrict access' => TRUE,
        'description' => '',
    ),
    'select_unreceipt' => array(
        'title' => __('已采购待收货查询'),
        'restrict access' => TRUE,
        'description' => '',
    ),
    'receipt_unwarehouse' => array(
        'title' => __('已收货未入库报表'),
        'restrict access' => TRUE,
        'description' => '',
    ),
));

